package com.yunhe.portal.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName NoticeInfoQueryCondition
 * @Description TODO
 * @Author HeTao
 * @Date 2021/10/19 17:32
 * @Version 1.0
 **/
@Data
@ApiModel(value = "NoticeInfoQueryCondition",description = "公告查询条件")
public class NoticeInfoQueryCondition implements Serializable {


    private static final long serialVersionUID = 5845999389428225916L;

    @ApiModelProperty(value = "标题",required = false)
    private String title;

    @ApiModelProperty(value = "项目id",hidden = true)
    private Long stationId;

    @ApiModelProperty(value = "公告类型  Station 园区   Company 企业",required = true)
    private String noticeType;

    @ApiModelProperty(value = "真实园区id",required = false)
    private List<Long> realStationIds;

    @ApiModelProperty(value = "发布开始时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String publishStartTime;

    @ApiModelProperty(value = "发布结束时间",required = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String publishEndTime;

    @ApiModelProperty(value = "是否上线",required = false)
    private String status;

    @ApiModelProperty(value = "当前页",required = true)
    private int page;

    @ApiModelProperty(value = "页面条数",required = true)
    private int size;
}
